package com.xuxin.baby.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.baby.R;
import com.xuxin.baby.database.SearchBean;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xu_xin
 * Created on 2020.08.28 0028
 * 搜索历史
 */
public class SearchHistoryAdapter extends BaseQuickAdapter<SearchBean, BaseViewHolder> {

    public SearchHistoryAdapter() {
        super(R.layout.item_search_history);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, SearchBean item) {
        holder.setText(R.id.item_search_history_name, item.getTitle());
    }
}